export default {
	data() {
		return {
			tableHeight: 300,
			topHeight: 320,
			loading: false, // 表格加载中
		}
	},
	mounted() {
		this.getHeight();
		window.onresize = () => {
			this.getHeight();
		}
	},
	updated() {
		if (this.$refs.table) {
			this.$refs.table.doLayout();
		}
	},
	methods: {
		getHeight() {
			window.fullHeight = document.documentElement.clientHeight
			this.$nextTick(() => {
				this.tableHeight = window.fullHeight - this.topHeight;
			})
		},
	}
}